package com.signway.module_signway_adapter_common_3;

import android.content.Context;
import android.util.Log;

import com.signway.open.api.IOpenN68661Api;
import com.signway.open.api.callback.base.Callback1;
import com.signway.open.api.callback.base.Callback2;


/*
 * -----------------------------------------------------------------
 * Copyright (C) 2011-2019, by your Signway, All rights reserved.
 * -----------------------------------------------------------------
 *
 * ProjectName: droid5119
 *
 * Author: Administrator
 *
 * Email: pf.wang@Signway.cn
 *
 * Description:
 *
 * -----------------------------------------------------------------
 * 2019-8-31 : Create T960xAuthorizedApi.java
 * -----------------------------------------------------------------
 */
public class SignwayN68661Api implements IOpenN68661Api {
    private static final String TAG = "SignwayN68661Api";
    private static SignwayN68661Api mSignwayN68661Api;
    private static Context mContext;

    public static synchronized SignwayN68661Api getInstance(Context context) {
        mContext = context;
        if (mSignwayN68661Api == null) {
            mSignwayN68661Api = new SignwayN68661Api(context);
        }
        return mSignwayN68661Api;
    }

    public SignwayN68661Api(Context context) {
        this.mContext = context;
    }

    @Override
    public void Droid_uart_ioctrl(byte[] cptr, int Cmd, int[] Aux, byte[] pBuffer, int offset) {
        Log.i(TAG, "Droid_uart_ioctrl: ");

    }

    @Override
    public void getN68661Version(Callback1<Integer> callback1) {
        Log.i(TAG, "getN68661Version: ");
    }

    @Override
    public void checkUpdateN68661(Callback2<Boolean, String> callback1) {
        Log.i(TAG, "checkUpdateN68661: ");
    }

    @Override
    public void startUpdateN68661(Context context, String updateFilePath) {
        Log.i(TAG, "startUpdateN68661: ");
    }

    @Override
    public void openUart() {
        Log.i(TAG, "openUart: ");
    }

    @Override
    public boolean gpioPinOutput(int gpioGroup, int gpioNum, int value) {
        return false;
    }

    @Override
    public int getGpioInput(int gpioGroup, int gpioNum) {
        return 0;
    }
}
